package com.general.template.controller;

import com.general.template.enums.ResultEnum;
import com.general.template.pojo.PowerDimension;
import com.general.template.pojo.PowerMeasurementType;
import com.general.template.service.PowerMeasurementTypeService;
import com.general.template.utils.Pages;
import com.general.template.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: 杰哥
 * Date: 2021/2/16 18:37
 * @Description:
 **/
@RequestMapping("measurementType")
@RestController
@Api(value="考察题类型管理",description = "对考察题类型管理的查看和修改")
public class MeasurementTypeController {

    @Autowired
    private PowerMeasurementTypeService measurementTypeService;

    @RequestMapping(value="query",method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value="查询全部题类型",notes = "查询全部题类型")
    public Result<Object> query(){
        List<PowerMeasurementType> list = this.measurementTypeService.list();
        return new Result<>(ResultEnum.SUCCESS,list);
    }
}
